import request from '@/utils/request'

// 查询公司钱包流水记录列表
export function listDealCompany(query) {
  return request({
    url: '/consumer/dealCompany/list',
    method: 'get',
    params: query
  })
}

// 查询公司钱包流水记录详细
export function getDealCompany(dealRecordId) {
  return request({
    url: '/consumer/dealCompany/' + dealRecordId,
    method: 'get'
  })
}

// 新增公司钱包流水记录
export function addDealCompany(data) {
  return request({
    url: '/consumer/dealCompany',
    method: 'post',
    data: data
  })
}

// 修改公司钱包流水记录
export function updateDealCompany(data) {
  return request({
    url: '/consumer/dealCompany',
    method: 'put',
    data: data
  })
}

// 删除公司钱包流水记录
export function delDealCompany(dealRecordId) {
  return request({
    url: '/consumer/dealCompany/' + dealRecordId,
    method: 'delete'
  })
}
